import request from '@/utils/request'
export const getAllChannels = () =>
  request({
    method: 'GET',
    url: '/v1_0/channels',
  })
export const addUserChannels = data =>
  request({
    method: 'PATCH',
    url: '/v1_0/user/channels',
    data: {
      channels: [data],
    },
  })
export const delUserChannels = id =>
  request({
    method: 'DELETE',
    url: `/v1_0/user/channels/${id}`,
  })
